Computer Configuration > Administrative Templates > Firefox > Cookies
Both
HKLM\Software\Policies\Mozilla\Firefox
If this policy is enabled, cookies are always allowed for the origins indicated. If a top level domain is specified (http://example.org), cookies are allowed for all subdomains as well. If this policy is disabled or not configured, the default cookie policy is followed.